/** 存放所有影院模块相关接口 */
import myaxios from '../Myaxios'
import URLENV from '@/http/BaseUrl'
const BMDURL = URLENV.BMDURL

const CinemaApi = {
  /** 查询所有电影院 */
  queryAll() {
    let url = BMDURL + '/cinemas'
    return myaxios.get(url)
  },

  /** 添加影院 */
  add(params) {
    let url = BMDURL + '/cinema/add'
    return myaxios.post(url, params)
  },

  /** 查询影院类型 */
  queryTypes() {
    let url = BMDURL + '/cinema/tags'
    return myaxios.get(url)
  },
}
export default CinemaApi
